package d1104.r21118.nw;

public class Teacher extends Person {
    protected String salary;
    protected String education;

    public Teacher() {
    }

    public Teacher(String salary, String education) {
        this.salary = salary;
        this.education = education;
    }

    public Teacher(String name, int age, String salary, String education) {
        super(name, age);
        this.salary = salary;
        this.education = education;
    }

    public String getSalary() {
        return salary;
    }

    public void setSalary(String salary) {
        this.salary = salary;
    }

    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education;
    }

    public void teach(){
        System.out.println(this.salary+this.salary);
    }

}
